import Vue from './core/index.js'
import mountComponent from './core/mountComponent/index.js'
import { mustUseProp, isReservedTag, isReservedAttr, getTagNamespace, isUnknownElement, inBrowser, patch, noop } from './config/index.js'
Vue.config.mustUseProp = mustUseProp
Vue.config.isReservedTag = isReservedTag
Vue.config.isReservedAttr = isReservedAttr
Vue.config.getTagNamespace = getTagNamespace
Vue.config.isUnknownElement = isUnknownElement
Vue.prototype.__patch__ = inBrowser ? patch : noop
Vue.prototype.$mount = function (el, hydrating) {
    console.log(el)
    el = document.querySelector(el)
    return mountComponent(this, el, hydrating)
}

export default Vue